

package com.shanjupay.common.domain;



/**
 * @author hmk
 */
public class BusinessException extends RuntimeException {
        //异常状态码
     private ErrorCode errorCode;
     //定义两个构造方法
    public BusinessException(){
        super();
    }
    public BusinessException(ErrorCode errorCode){
        super();
        this.errorCode = errorCode;
    }

    public ErrorCode getErrorCode() {
        return errorCode;
    }

    public void setErrorCode(ErrorCode errorCode) {
        this.errorCode = errorCode;
    }
}
